<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:pm="http://primefaces.org/mobile">
<h:head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>Registrar Usuario</title>
</h:head>
<h:body>
	<h:form>
		<pm:field>
		<p:panelGrid columns="2">
			<p:outputLabel for="nombre" value="Nombre:" />
			<p:inputText id="nombre" required="true" value="#{loginView.nombre}" />
		</p:panelGrid>
		</pm:field>

		<pm:field>
		<p:panelGrid columns="2">
			<p:outputLabel for="apellidos" value="Apellidos:" />
			<p:inputText id="apellidos" required="true"
				value="#{loginView.apellidos}" />
		</p:panelGrid>
		</pm:field>

		<pm:field>
		<p:panelGrid columns="2">
			<p:outputLabel for="username" value="Username:" />
			<p:inputText id="username" required="true"
				value="#{loginView.userName}" />
		</p:panelGrid>
		</pm:field>

		<pm:field>
		<p:panelGrid columns="2">
			<p:outputLabel for="password" value="Password:" />
			<p:inputText id="password" required="true"
				value="#{loginView.password}" />
		</p:panelGrid>
		</pm:field>

		<pm:field>
		<p:panelGrid columns="2">
			<p:outputLabel for="mail" value="Mail:" />
			<p:inputText id="mail" required="true" value="#{loginView.mail}" />
		</p:panelGrid>
		</pm:field>

		<p:commandButton value="Registrarme"
			action="#{loginView.insertarUsuario}" />
			
	</h:form>
	</h:body>
</html>